0 CpxTRS
↳1 TrsToWeightedTrsProof (BOTH BOUNDS(ID, ID), 0 ms)
↳2 CpxWeightedTrs
↳3 TypeInferenceProof (BOTH BOUNDS(ID, ID), 0 ms)
↳4 CpxTypedWeightedTrs
↳5 CompletionProof (UPPER BOUND(ID), 0 ms)
↳6 CpxTypedWeightedCompleteTrs
↳7 NarrowingProof (BOTH BOUNDS(ID, ID), 0 ms)
↳8 CpxTypedWeightedCompleteTrs
↳9 CpxTypedWeightedTrsToRntsProof (UPPER BOUND(ID), 0 ms)
↳10 CpxRNTS
↳11 InliningProof (UPPER BOUND(ID), 0 ms)
↳12 CpxRNTS
↳13 SimplificationProof (BOTH BOUNDS(ID, ID), 0 ms)
↳14 CpxRNTS
↳15 CpxRntsAnalysisOrderProof (BOTH BOUNDS(ID, ID), 0 ms)
↳16 CpxRNTS
↳17 IntTrsBoundProof (UPPER BOUND(ID), 264 ms)
↳18 CpxRNTS
↳19 IntTrsBoundProof (UPPER BOUND(ID), 96 ms)
↳20 CpxRNTS
↳21 ResultPropagationProof (UPPER BOUND(ID), 0 ms)
↳22 CpxRNTS
↳23 IntTrsBoundProof (UPPER BOUND(ID), 303 ms)
↳24 CpxRNTS
↳25 IntTrsBoundProof (UPPER BOUND(ID), 80 ms)
↳26 CpxRNTS
↳27 ResultPropagationProof (UPPER BOUND(ID), 0 ms)
↳28 CpxRNTS
↳29 IntTrsBoundProof (UPPER BOUND(ID), 330 ms)
↳30 CpxRNTS
↳31 IntTrsBoundProof (UPPER BOUND(ID), 60 ms)
↳32 CpxRNTS
↳33 ResultPropagationProof (UPPER BOUND(ID), 0 ms)
↳34 CpxRNTS
↳35 IntTrsBoundProof (UPPER BOUND(ID), 755 ms)
↳36 CpxRNTS
↳37 IntTrsBoundProof (UPPER BOUND(ID), 309 ms)
↳38 CpxRNTS
↳39 FinalProof (⇔, 0 ms)
↳40 BOUNDS(1, n^1)
minus(0, Y) → 0
minus(s(X), s(Y)) → minus(X, Y)
geq(X, 0) → true
geq(0, s(Y)) → false
geq(s(X), s(Y)) → geq(X, Y)
div(0, s(Y)) → 0
div(s(X), s(Y)) → if(geq(X, Y), s(div(minus(X, Y), s(Y))), 0)
if(true, X, Y) → X
if(false, X, Y) → Y
minus(0, Y) → 0 [1]
minus(s(X), s(Y)) → minus(X, Y) [1]
geq(X, 0) → true [1]
geq(0, s(Y)) → false [1]
geq(s(X), s(Y)) → geq(X, Y) [1]
div(0, s(Y)) → 0 [1]
div(s(X), s(Y)) → if(geq(X, Y), s(div(minus(X, Y), s(Y))), 0) [1]
if(true, X, Y) → X [1]
if(false, X, Y) → Y [1]
minus(0, Y) → 0 [1]
minus(s(X), s(Y)) → minus(X, Y) [1]
geq(X, 0) → true [1]
geq(0, s(Y)) → false [1]
geq(s(X), s(Y)) → geq(X, Y) [1]
div(0, s(Y)) → 0 [1]
div(s(X), s(Y)) → if(geq(X, Y), s(div(minus(X, Y), s(Y))), 0) [1]
if(true, X, Y) → X [1]
if(false, X, Y) → Y [1]
minus :: 0:s → 0:s → 0:s 0 :: 0:s s :: 0:s → 0:s geq :: 0:s → 0:s → true:false true :: true:false false :: true:false div :: 0:s → 0:s → 0:s if :: true:false → 0:s → 0:s → 0:s |
(a) The obligation is a constructor system where every type has a constant constructor,
(b) The following defined symbols do not have to be completely defined, as they can never occur inside other defined symbols:
none
(c) The following functions are completely defined:
geq
div
minus
if
div(v0, v1) → 0 [0]
minus(v0, v1) → 0 [0]
Runtime Complexity Weighted TRS with Types. The TRS R consists of the following rules:
The TRS has the following type information:
Rewrite Strategy: INNERMOST |
Runtime Complexity Weighted TRS with Types. The TRS R consists of the following rules:
The TRS has the following type information:
Rewrite Strategy: INNERMOST |
0 => 0
true => 1
false => 0
div(z, z') -{ 3 }→ if(geq(X', Y''), 1 + div(minus(X', Y''), 1 + (1 + Y'')), 0) :|: Y'' >= 0, z' = 1 + (1 + Y''), X' >= 0, z = 1 + (1 + X')
div(z, z') -{ 2 }→ if(geq(X', Y''), 1 + div(0, 1 + (1 + Y'')), 0) :|: Y'' >= 0, z' = 1 + (1 + Y''), X' >= 0, z = 1 + (1 + X')
div(z, z') -{ 3 }→ if(1, 1 + div(0, 1 + 0), 0) :|: z = 1 + 0, z' = 1 + 0
div(z, z') -{ 2 }→ if(1, 1 + div(0, 1 + 0), 0) :|: z = 1 + X, X >= 0, z' = 1 + 0
div(z, z') -{ 3 }→ if(0, 1 + div(0, 1 + (1 + Y')), 0) :|: z' = 1 + (1 + Y'), Y' >= 0, z = 1 + 0
div(z, z') -{ 2 }→ if(0, 1 + div(0, 1 + (1 + Y')), 0) :|: z' = 1 + (1 + Y'), Y' >= 0, z = 1 + 0
div(z, z') -{ 1 }→ 0 :|: Y >= 0, z' = 1 + Y, z = 0
div(z, z') -{ 0 }→ 0 :|: v0 >= 0, v1 >= 0, z = v0, z' = v1
geq(z, z') -{ 1 }→ geq(X, Y) :|: z = 1 + X, Y >= 0, z' = 1 + Y, X >= 0
geq(z, z') -{ 1 }→ 1 :|: X >= 0, z = X, z' = 0
geq(z, z') -{ 1 }→ 0 :|: Y >= 0, z' = 1 + Y, z = 0
if(z, z', z'') -{ 1 }→ X :|: z' = X, Y >= 0, z = 1, z'' = Y, X >= 0
if(z, z', z'') -{ 1 }→ Y :|: z' = X, Y >= 0, z'' = Y, X >= 0, z = 0
minus(z, z') -{ 1 }→ minus(X, Y) :|: z = 1 + X, Y >= 0, z' = 1 + Y, X >= 0
minus(z, z') -{ 1 }→ 0 :|: z' = Y, Y >= 0, z = 0
minus(z, z') -{ 0 }→ 0 :|: v0 >= 0, v1 >= 0, z = v0, z' = v1
if(z, z', z'') -{ 1 }→ X :|: z' = X, Y >= 0, z = 1, z'' = Y, X >= 0
if(z, z', z'') -{ 1 }→ Y :|: z' = X, Y >= 0, z'' = Y, X >= 0, z = 0
div(z, z') -{ 3 }→ if(geq(X', Y''), 1 + div(minus(X', Y''), 1 + (1 + Y'')), 0) :|: Y'' >= 0, z' = 1 + (1 + Y''), X' >= 0, z = 1 + (1 + X')
div(z, z') -{ 2 }→ if(geq(X', Y''), 1 + div(0, 1 + (1 + Y'')), 0) :|: Y'' >= 0, z' = 1 + (1 + Y''), X' >= 0, z = 1 + (1 + X')
div(z, z') -{ 3 }→ if(1, 1 + div(0, 1 + 0), 0) :|: z = 1 + 0, z' = 1 + 0
div(z, z') -{ 2 }→ if(1, 1 + div(0, 1 + 0), 0) :|: z = 1 + X, X >= 0, z' = 1 + 0
div(z, z') -{ 3 }→ if(0, 1 + div(0, 1 + (1 + Y')), 0) :|: z' = 1 + (1 + Y'), Y' >= 0, z = 1 + 0
div(z, z') -{ 2 }→ if(0, 1 + div(0, 1 + (1 + Y')), 0) :|: z' = 1 + (1 + Y'), Y' >= 0, z = 1 + 0
div(z, z') -{ 1 }→ 0 :|: Y >= 0, z' = 1 + Y, z = 0
div(z, z') -{ 0 }→ 0 :|: v0 >= 0, v1 >= 0, z = v0, z' = v1
geq(z, z') -{ 1 }→ geq(X, Y) :|: z = 1 + X, Y >= 0, z' = 1 + Y, X >= 0
geq(z, z') -{ 1 }→ 1 :|: X >= 0, z = X, z' = 0
geq(z, z') -{ 1 }→ 0 :|: Y >= 0, z' = 1 + Y, z = 0
if(z, z', z'') -{ 1 }→ X :|: z' = X, Y >= 0, z = 1, z'' = Y, X >= 0
if(z, z', z'') -{ 1 }→ Y :|: z' = X, Y >= 0, z'' = Y, X >= 0, z = 0
minus(z, z') -{ 1 }→ minus(X, Y) :|: z = 1 + X, Y >= 0, z' = 1 + Y, X >= 0
minus(z, z') -{ 1 }→ 0 :|: z' = Y, Y >= 0, z = 0
minus(z, z') -{ 0 }→ 0 :|: v0 >= 0, v1 >= 0, z = v0, z' = v1
div(z, z') -{ 3 }→ if(geq(z - 2, z' - 2), 1 + div(minus(z - 2, z' - 2), 1 + (1 + (z' - 2))), 0) :|: z' - 2 >= 0, z - 2 >= 0
div(z, z') -{ 2 }→ if(geq(z - 2, z' - 2), 1 + div(0, 1 + (1 + (z' - 2))), 0) :|: z' - 2 >= 0, z - 2 >= 0
div(z, z') -{ 3 }→ if(1, 1 + div(0, 1 + 0), 0) :|: z = 1 + 0, z' = 1 + 0
div(z, z') -{ 2 }→ if(1, 1 + div(0, 1 + 0), 0) :|: z - 1 >= 0, z' = 1 + 0
div(z, z') -{ 3 }→ if(0, 1 + div(0, 1 + (1 + (z' - 2))), 0) :|: z' - 2 >= 0, z = 1 + 0
div(z, z') -{ 2 }→ if(0, 1 + div(0, 1 + (1 + (z' - 2))), 0) :|: z' - 2 >= 0, z = 1 + 0
div(z, z') -{ 1 }→ 0 :|: z' - 1 >= 0, z = 0
div(z, z') -{ 0 }→ 0 :|: z >= 0, z' >= 0
geq(z, z') -{ 1 }→ geq(z - 1, z' - 1) :|: z' - 1 >= 0, z - 1 >= 0
geq(z, z') -{ 1 }→ 1 :|: z >= 0, z' = 0
geq(z, z') -{ 1 }→ 0 :|: z' - 1 >= 0, z = 0
if(z, z', z'') -{ 1 }→ z' :|: z'' >= 0, z = 1, z' >= 0
if(z, z', z'') -{ 1 }→ z'' :|: z'' >= 0, z' >= 0, z = 0
minus(z, z') -{ 1 }→ minus(z - 1, z' - 1) :|: z' - 1 >= 0, z - 1 >= 0
minus(z, z') -{ 1 }→ 0 :|: z' >= 0, z = 0
minus(z, z') -{ 0 }→ 0 :|: z >= 0, z' >= 0
{ minus } { if } { geq } { div } |
div(z, z') -{ 3 }→ if(geq(z - 2, z' - 2), 1 + div(minus(z - 2, z' - 2), 1 + (1 + (z' - 2))), 0) :|: z' - 2 >= 0, z - 2 >= 0
div(z, z') -{ 2 }→ if(geq(z - 2, z' - 2), 1 + div(0, 1 + (1 + (z' - 2))), 0) :|: z' - 2 >= 0, z - 2 >= 0
div(z, z') -{ 3 }→ if(1, 1 + div(0, 1 + 0), 0) :|: z = 1 + 0, z' = 1 + 0
div(z, z') -{ 2 }→ if(1, 1 + div(0, 1 + 0), 0) :|: z - 1 >= 0, z' = 1 + 0
div(z, z') -{ 3 }→ if(0, 1 + div(0, 1 + (1 + (z' - 2))), 0) :|: z' - 2 >= 0, z = 1 + 0
div(z, z') -{ 2 }→ if(0, 1 + div(0, 1 + (1 + (z' - 2))), 0) :|: z' - 2 >= 0, z = 1 + 0
div(z, z') -{ 1 }→ 0 :|: z' - 1 >= 0, z = 0
div(z, z') -{ 0 }→ 0 :|: z >= 0, z' >= 0
geq(z, z') -{ 1 }→ geq(z - 1, z' - 1) :|: z' - 1 >= 0, z - 1 >= 0
geq(z, z') -{ 1 }→ 1 :|: z >= 0, z' = 0
geq(z, z') -{ 1 }→ 0 :|: z' - 1 >= 0, z = 0
if(z, z', z'') -{ 1 }→ z' :|: z'' >= 0, z = 1, z' >= 0
if(z, z', z'') -{ 1 }→ z'' :|: z'' >= 0, z' >= 0, z = 0
minus(z, z') -{ 1 }→ minus(z - 1, z' - 1) :|: z' - 1 >= 0, z - 1 >= 0
minus(z, z') -{ 1 }→ 0 :|: z' >= 0, z = 0
minus(z, z') -{ 0 }→ 0 :|: z >= 0, z' >= 0
div(z, z') -{ 3 }→ if(geq(z - 2, z' - 2), 1 + div(minus(z - 2, z' - 2), 1 + (1 + (z' - 2))), 0) :|: z' - 2 >= 0, z - 2 >= 0
div(z, z') -{ 2 }→ if(geq(z - 2, z' - 2), 1 + div(0, 1 + (1 + (z' - 2))), 0) :|: z' - 2 >= 0, z - 2 >= 0
div(z, z') -{ 3 }→ if(1, 1 + div(0, 1 + 0), 0) :|: z = 1 + 0, z' = 1 + 0
div(z, z') -{ 2 }→ if(1, 1 + div(0, 1 + 0), 0) :|: z - 1 >= 0, z' = 1 + 0
div(z, z') -{ 3 }→ if(0, 1 + div(0, 1 + (1 + (z' - 2))), 0) :|: z' - 2 >= 0, z = 1 + 0
div(z, z') -{ 2 }→ if(0, 1 + div(0, 1 + (1 + (z' - 2))), 0) :|: z' - 2 >= 0, z = 1 + 0
div(z, z') -{ 1 }→ 0 :|: z' - 1 >= 0, z = 0
div(z, z') -{ 0 }→ 0 :|: z >= 0, z' >= 0
geq(z, z') -{ 1 }→ geq(z - 1, z' - 1) :|: z' - 1 >= 0, z - 1 >= 0
geq(z, z') -{ 1 }→ 1 :|: z >= 0, z' = 0
geq(z, z') -{ 1 }→ 0 :|: z' - 1 >= 0, z = 0
if(z, z', z'') -{ 1 }→ z' :|: z'' >= 0, z = 1, z' >= 0
if(z, z', z'') -{ 1 }→ z'' :|: z'' >= 0, z' >= 0, z = 0
minus(z, z') -{ 1 }→ minus(z - 1, z' - 1) :|: z' - 1 >= 0, z - 1 >= 0
minus(z, z') -{ 1 }→ 0 :|: z' >= 0, z = 0
minus(z, z') -{ 0 }→ 0 :|: z >= 0, z' >= 0
minus: runtime: ?, size: O(1) [0] |
div(z, z') -{ 3 }→ if(geq(z - 2, z' - 2), 1 + div(minus(z - 2, z' - 2), 1 + (1 + (z' - 2))), 0) :|: z' - 2 >= 0, z - 2 >= 0
div(z, z') -{ 2 }→ if(geq(z - 2, z' - 2), 1 + div(0, 1 + (1 + (z' - 2))), 0) :|: z' - 2 >= 0, z - 2 >= 0
div(z, z') -{ 3 }→ if(1, 1 + div(0, 1 + 0), 0) :|: z = 1 + 0, z' = 1 + 0
div(z, z') -{ 2 }→ if(1, 1 + div(0, 1 + 0), 0) :|: z - 1 >= 0, z' = 1 + 0
div(z, z') -{ 3 }→ if(0, 1 + div(0, 1 + (1 + (z' - 2))), 0) :|: z' - 2 >= 0, z = 1 + 0
div(z, z') -{ 2 }→ if(0, 1 + div(0, 1 + (1 + (z' - 2))), 0) :|: z' - 2 >= 0, z = 1 + 0
div(z, z') -{ 1 }→ 0 :|: z' - 1 >= 0, z = 0
div(z, z') -{ 0 }→ 0 :|: z >= 0, z' >= 0
geq(z, z') -{ 1 }→ geq(z - 1, z' - 1) :|: z' - 1 >= 0, z - 1 >= 0
geq(z, z') -{ 1 }→ 1 :|: z >= 0, z' = 0
geq(z, z') -{ 1 }→ 0 :|: z' - 1 >= 0, z = 0
if(z, z', z'') -{ 1 }→ z' :|: z'' >= 0, z = 1, z' >= 0
if(z, z', z'') -{ 1 }→ z'' :|: z'' >= 0, z' >= 0, z = 0
minus(z, z') -{ 1 }→ minus(z - 1, z' - 1) :|: z' - 1 >= 0, z - 1 >= 0
minus(z, z') -{ 1 }→ 0 :|: z' >= 0, z = 0
minus(z, z') -{ 0 }→ 0 :|: z >= 0, z' >= 0
minus: runtime: O(n1) [1 + z'], size: O(1) [0] |
div(z, z') -{ 2 + z' }→ if(geq(z - 2, z' - 2), 1 + div(s', 1 + (1 + (z' - 2))), 0) :|: s' >= 0, s' <= 0, z' - 2 >= 0, z - 2 >= 0
div(z, z') -{ 2 }→ if(geq(z - 2, z' - 2), 1 + div(0, 1 + (1 + (z' - 2))), 0) :|: z' - 2 >= 0, z - 2 >= 0
div(z, z') -{ 3 }→ if(1, 1 + div(0, 1 + 0), 0) :|: z = 1 + 0, z' = 1 + 0
div(z, z') -{ 2 }→ if(1, 1 + div(0, 1 + 0), 0) :|: z - 1 >= 0, z' = 1 + 0
div(z, z') -{ 3 }→ if(0, 1 + div(0, 1 + (1 + (z' - 2))), 0) :|: z' - 2 >= 0, z = 1 + 0
div(z, z') -{ 2 }→ if(0, 1 + div(0, 1 + (1 + (z' - 2))), 0) :|: z' - 2 >= 0, z = 1 + 0
div(z, z') -{ 1 }→ 0 :|: z' - 1 >= 0, z = 0
div(z, z') -{ 0 }→ 0 :|: z >= 0, z' >= 0
geq(z, z') -{ 1 }→ geq(z - 1, z' - 1) :|: z' - 1 >= 0, z - 1 >= 0
geq(z, z') -{ 1 }→ 1 :|: z >= 0, z' = 0
geq(z, z') -{ 1 }→ 0 :|: z' - 1 >= 0, z = 0
if(z, z', z'') -{ 1 }→ z' :|: z'' >= 0, z = 1, z' >= 0
if(z, z', z'') -{ 1 }→ z'' :|: z'' >= 0, z' >= 0, z = 0
minus(z, z') -{ 1 + z' }→ s :|: s >= 0, s <= 0, z' - 1 >= 0, z - 1 >= 0
minus(z, z') -{ 1 }→ 0 :|: z' >= 0, z = 0
minus(z, z') -{ 0 }→ 0 :|: z >= 0, z' >= 0
minus: runtime: O(n1) [1 + z'], size: O(1) [0] |
div(z, z') -{ 2 + z' }→ if(geq(z - 2, z' - 2), 1 + div(s', 1 + (1 + (z' - 2))), 0) :|: s' >= 0, s' <= 0, z' - 2 >= 0, z - 2 >= 0
div(z, z') -{ 2 }→ if(geq(z - 2, z' - 2), 1 + div(0, 1 + (1 + (z' - 2))), 0) :|: z' - 2 >= 0, z - 2 >= 0
div(z, z') -{ 3 }→ if(1, 1 + div(0, 1 + 0), 0) :|: z = 1 + 0, z' = 1 + 0
div(z, z') -{ 2 }→ if(1, 1 + div(0, 1 + 0), 0) :|: z - 1 >= 0, z' = 1 + 0
div(z, z') -{ 3 }→ if(0, 1 + div(0, 1 + (1 + (z' - 2))), 0) :|: z' - 2 >= 0, z = 1 + 0
div(z, z') -{ 2 }→ if(0, 1 + div(0, 1 + (1 + (z' - 2))), 0) :|: z' - 2 >= 0, z = 1 + 0
div(z, z') -{ 1 }→ 0 :|: z' - 1 >= 0, z = 0
div(z, z') -{ 0 }→ 0 :|: z >= 0, z' >= 0
geq(z, z') -{ 1 }→ geq(z - 1, z' - 1) :|: z' - 1 >= 0, z - 1 >= 0
geq(z, z') -{ 1 }→ 1 :|: z >= 0, z' = 0
geq(z, z') -{ 1 }→ 0 :|: z' - 1 >= 0, z = 0
if(z, z', z'') -{ 1 }→ z' :|: z'' >= 0, z = 1, z' >= 0
if(z, z', z'') -{ 1 }→ z'' :|: z'' >= 0, z' >= 0, z = 0
minus(z, z') -{ 1 + z' }→ s :|: s >= 0, s <= 0, z' - 1 >= 0, z - 1 >= 0
minus(z, z') -{ 1 }→ 0 :|: z' >= 0, z = 0
minus(z, z') -{ 0 }→ 0 :|: z >= 0, z' >= 0
minus: runtime: O(n1) [1 + z'], size: O(1) [0] if: runtime: ?, size: O(n1) [z' + z''] |
div(z, z') -{ 2 + z' }→ if(geq(z - 2, z' - 2), 1 + div(s', 1 + (1 + (z' - 2))), 0) :|: s' >= 0, s' <= 0, z' - 2 >= 0, z - 2 >= 0
div(z, z') -{ 2 }→ if(geq(z - 2, z' - 2), 1 + div(0, 1 + (1 + (z' - 2))), 0) :|: z' - 2 >= 0, z - 2 >= 0
div(z, z') -{ 3 }→ if(1, 1 + div(0, 1 + 0), 0) :|: z = 1 + 0, z' = 1 + 0
div(z, z') -{ 2 }→ if(1, 1 + div(0, 1 + 0), 0) :|: z - 1 >= 0, z' = 1 + 0
div(z, z') -{ 3 }→ if(0, 1 + div(0, 1 + (1 + (z' - 2))), 0) :|: z' - 2 >= 0, z = 1 + 0
div(z, z') -{ 2 }→ if(0, 1 + div(0, 1 + (1 + (z' - 2))), 0) :|: z' - 2 >= 0, z = 1 + 0
div(z, z') -{ 1 }→ 0 :|: z' - 1 >= 0, z = 0
div(z, z') -{ 0 }→ 0 :|: z >= 0, z' >= 0
geq(z, z') -{ 1 }→ geq(z - 1, z' - 1) :|: z' - 1 >= 0, z - 1 >= 0
geq(z, z') -{ 1 }→ 1 :|: z >= 0, z' = 0
geq(z, z') -{ 1 }→ 0 :|: z' - 1 >= 0, z = 0
if(z, z', z'') -{ 1 }→ z' :|: z'' >= 0, z = 1, z' >= 0
if(z, z', z'') -{ 1 }→ z'' :|: z'' >= 0, z' >= 0, z = 0
minus(z, z') -{ 1 + z' }→ s :|: s >= 0, s <= 0, z' - 1 >= 0, z - 1 >= 0
minus(z, z') -{ 1 }→ 0 :|: z' >= 0, z = 0
minus(z, z') -{ 0 }→ 0 :|: z >= 0, z' >= 0
minus: runtime: O(n1) [1 + z'], size: O(1) [0] if: runtime: O(1) [1], size: O(n1) [z' + z''] |
div(z, z') -{ 2 + z' }→ if(geq(z - 2, z' - 2), 1 + div(s', 1 + (1 + (z' - 2))), 0) :|: s' >= 0, s' <= 0, z' - 2 >= 0, z - 2 >= 0
div(z, z') -{ 2 }→ if(geq(z - 2, z' - 2), 1 + div(0, 1 + (1 + (z' - 2))), 0) :|: z' - 2 >= 0, z - 2 >= 0
div(z, z') -{ 3 }→ if(1, 1 + div(0, 1 + 0), 0) :|: z = 1 + 0, z' = 1 + 0
div(z, z') -{ 2 }→ if(1, 1 + div(0, 1 + 0), 0) :|: z - 1 >= 0, z' = 1 + 0
div(z, z') -{ 3 }→ if(0, 1 + div(0, 1 + (1 + (z' - 2))), 0) :|: z' - 2 >= 0, z = 1 + 0
div(z, z') -{ 2 }→ if(0, 1 + div(0, 1 + (1 + (z' - 2))), 0) :|: z' - 2 >= 0, z = 1 + 0
div(z, z') -{ 1 }→ 0 :|: z' - 1 >= 0, z = 0
div(z, z') -{ 0 }→ 0 :|: z >= 0, z' >= 0
geq(z, z') -{ 1 }→ geq(z - 1, z' - 1) :|: z' - 1 >= 0, z - 1 >= 0
geq(z, z') -{ 1 }→ 1 :|: z >= 0, z' = 0
geq(z, z') -{ 1 }→ 0 :|: z' - 1 >= 0, z = 0
if(z, z', z'') -{ 1 }→ z' :|: z'' >= 0, z = 1, z' >= 0
if(z, z', z'') -{ 1 }→ z'' :|: z'' >= 0, z' >= 0, z = 0
minus(z, z') -{ 1 + z' }→ s :|: s >= 0, s <= 0, z' - 1 >= 0, z - 1 >= 0
minus(z, z') -{ 1 }→ 0 :|: z' >= 0, z = 0
minus(z, z') -{ 0 }→ 0 :|: z >= 0, z' >= 0
minus: runtime: O(n1) [1 + z'], size: O(1) [0] if: runtime: O(1) [1], size: O(n1) [z' + z''] |
div(z, z') -{ 2 + z' }→ if(geq(z - 2, z' - 2), 1 + div(s', 1 + (1 + (z' - 2))), 0) :|: s' >= 0, s' <= 0, z' - 2 >= 0, z - 2 >= 0
div(z, z') -{ 2 }→ if(geq(z - 2, z' - 2), 1 + div(0, 1 + (1 + (z' - 2))), 0) :|: z' - 2 >= 0, z - 2 >= 0
div(z, z') -{ 3 }→ if(1, 1 + div(0, 1 + 0), 0) :|: z = 1 + 0, z' = 1 + 0
div(z, z') -{ 2 }→ if(1, 1 + div(0, 1 + 0), 0) :|: z - 1 >= 0, z' = 1 + 0
div(z, z') -{ 3 }→ if(0, 1 + div(0, 1 + (1 + (z' - 2))), 0) :|: z' - 2 >= 0, z = 1 + 0
div(z, z') -{ 2 }→ if(0, 1 + div(0, 1 + (1 + (z' - 2))), 0) :|: z' - 2 >= 0, z = 1 + 0
div(z, z') -{ 1 }→ 0 :|: z' - 1 >= 0, z = 0
div(z, z') -{ 0 }→ 0 :|: z >= 0, z' >= 0
geq(z, z') -{ 1 }→ geq(z - 1, z' - 1) :|: z' - 1 >= 0, z - 1 >= 0
geq(z, z') -{ 1 }→ 1 :|: z >= 0, z' = 0
geq(z, z') -{ 1 }→ 0 :|: z' - 1 >= 0, z = 0
if(z, z', z'') -{ 1 }→ z' :|: z'' >= 0, z = 1, z' >= 0
if(z, z', z'') -{ 1 }→ z'' :|: z'' >= 0, z' >= 0, z = 0
minus(z, z') -{ 1 + z' }→ s :|: s >= 0, s <= 0, z' - 1 >= 0, z - 1 >= 0
minus(z, z') -{ 1 }→ 0 :|: z' >= 0, z = 0
minus(z, z') -{ 0 }→ 0 :|: z >= 0, z' >= 0
minus: runtime: O(n1) [1 + z'], size: O(1) [0] if: runtime: O(1) [1], size: O(n1) [z' + z''] geq: runtime: ?, size: O(1) [1] |
div(z, z') -{ 2 + z' }→ if(geq(z - 2, z' - 2), 1 + div(s', 1 + (1 + (z' - 2))), 0) :|: s' >= 0, s' <= 0, z' - 2 >= 0, z - 2 >= 0
div(z, z') -{ 2 }→ if(geq(z - 2, z' - 2), 1 + div(0, 1 + (1 + (z' - 2))), 0) :|: z' - 2 >= 0, z - 2 >= 0
div(z, z') -{ 3 }→ if(1, 1 + div(0, 1 + 0), 0) :|: z = 1 + 0, z' = 1 + 0
div(z, z') -{ 2 }→ if(1, 1 + div(0, 1 + 0), 0) :|: z - 1 >= 0, z' = 1 + 0
div(z, z') -{ 3 }→ if(0, 1 + div(0, 1 + (1 + (z' - 2))), 0) :|: z' - 2 >= 0, z = 1 + 0
div(z, z') -{ 2 }→ if(0, 1 + div(0, 1 + (1 + (z' - 2))), 0) :|: z' - 2 >= 0, z = 1 + 0
div(z, z') -{ 1 }→ 0 :|: z' - 1 >= 0, z = 0
div(z, z') -{ 0 }→ 0 :|: z >= 0, z' >= 0
geq(z, z') -{ 1 }→ geq(z - 1, z' - 1) :|: z' - 1 >= 0, z - 1 >= 0
geq(z, z') -{ 1 }→ 1 :|: z >= 0, z' = 0
geq(z, z') -{ 1 }→ 0 :|: z' - 1 >= 0, z = 0
if(z, z', z'') -{ 1 }→ z' :|: z'' >= 0, z = 1, z' >= 0
if(z, z', z'') -{ 1 }→ z'' :|: z'' >= 0, z' >= 0, z = 0
minus(z, z') -{ 1 + z' }→ s :|: s >= 0, s <= 0, z' - 1 >= 0, z - 1 >= 0
minus(z, z') -{ 1 }→ 0 :|: z' >= 0, z = 0
minus(z, z') -{ 0 }→ 0 :|: z >= 0, z' >= 0
minus: runtime: O(n1) [1 + z'], size: O(1) [0] if: runtime: O(1) [1], size: O(n1) [z' + z''] geq: runtime: O(n1) [1 + z'], size: O(1) [1] |
div(z, z') -{ 1 + 2·z' }→ if(s1, 1 + div(s', 1 + (1 + (z' - 2))), 0) :|: s1 >= 0, s1 <= 1, s' >= 0, s' <= 0, z' - 2 >= 0, z - 2 >= 0
div(z, z') -{ 1 + z' }→ if(s2, 1 + div(0, 1 + (1 + (z' - 2))), 0) :|: s2 >= 0, s2 <= 1, z' - 2 >= 0, z - 2 >= 0
div(z, z') -{ 3 }→ if(1, 1 + div(0, 1 + 0), 0) :|: z = 1 + 0, z' = 1 + 0
div(z, z') -{ 2 }→ if(1, 1 + div(0, 1 + 0), 0) :|: z - 1 >= 0, z' = 1 + 0
div(z, z') -{ 3 }→ if(0, 1 + div(0, 1 + (1 + (z' - 2))), 0) :|: z' - 2 >= 0, z = 1 + 0
div(z, z') -{ 2 }→ if(0, 1 + div(0, 1 + (1 + (z' - 2))), 0) :|: z' - 2 >= 0, z = 1 + 0
div(z, z') -{ 1 }→ 0 :|: z' - 1 >= 0, z = 0
div(z, z') -{ 0 }→ 0 :|: z >= 0, z' >= 0
geq(z, z') -{ 1 + z' }→ s'' :|: s'' >= 0, s'' <= 1, z' - 1 >= 0, z - 1 >= 0
geq(z, z') -{ 1 }→ 1 :|: z >= 0, z' = 0
geq(z, z') -{ 1 }→ 0 :|: z' - 1 >= 0, z = 0
if(z, z', z'') -{ 1 }→ z' :|: z'' >= 0, z = 1, z' >= 0
if(z, z', z'') -{ 1 }→ z'' :|: z'' >= 0, z' >= 0, z = 0
minus(z, z') -{ 1 + z' }→ s :|: s >= 0, s <= 0, z' - 1 >= 0, z - 1 >= 0
minus(z, z') -{ 1 }→ 0 :|: z' >= 0, z = 0
minus(z, z') -{ 0 }→ 0 :|: z >= 0, z' >= 0
minus: runtime: O(n1) [1 + z'], size: O(1) [0] if: runtime: O(1) [1], size: O(n1) [z' + z''] geq: runtime: O(n1) [1 + z'], size: O(1) [1] |
div(z, z') -{ 1 + 2·z' }→ if(s1, 1 + div(s', 1 + (1 + (z' - 2))), 0) :|: s1 >= 0, s1 <= 1, s' >= 0, s' <= 0, z' - 2 >= 0, z - 2 >= 0
div(z, z') -{ 1 + z' }→ if(s2, 1 + div(0, 1 + (1 + (z' - 2))), 0) :|: s2 >= 0, s2 <= 1, z' - 2 >= 0, z - 2 >= 0
div(z, z') -{ 3 }→ if(1, 1 + div(0, 1 + 0), 0) :|: z = 1 + 0, z' = 1 + 0
div(z, z') -{ 2 }→ if(1, 1 + div(0, 1 + 0), 0) :|: z - 1 >= 0, z' = 1 + 0
div(z, z') -{ 3 }→ if(0, 1 + div(0, 1 + (1 + (z' - 2))), 0) :|: z' - 2 >= 0, z = 1 + 0
div(z, z') -{ 2 }→ if(0, 1 + div(0, 1 + (1 + (z' - 2))), 0) :|: z' - 2 >= 0, z = 1 + 0
div(z, z') -{ 1 }→ 0 :|: z' - 1 >= 0, z = 0
div(z, z') -{ 0 }→ 0 :|: z >= 0, z' >= 0
geq(z, z') -{ 1 + z' }→ s'' :|: s'' >= 0, s'' <= 1, z' - 1 >= 0, z - 1 >= 0
geq(z, z') -{ 1 }→ 1 :|: z >= 0, z' = 0
geq(z, z') -{ 1 }→ 0 :|: z' - 1 >= 0, z = 0
if(z, z', z'') -{ 1 }→ z' :|: z'' >= 0, z = 1, z' >= 0
if(z, z', z'') -{ 1 }→ z'' :|: z'' >= 0, z' >= 0, z = 0
minus(z, z') -{ 1 + z' }→ s :|: s >= 0, s <= 0, z' - 1 >= 0, z - 1 >= 0
minus(z, z') -{ 1 }→ 0 :|: z' >= 0, z = 0
minus(z, z') -{ 0 }→ 0 :|: z >= 0, z' >= 0
minus: runtime: O(n1) [1 + z'], size: O(1) [0] if: runtime: O(1) [1], size: O(n1) [z' + z''] geq: runtime: O(n1) [1 + z'], size: O(1) [1] div: runtime: ?, size: O(1) [1] |
div(z, z') -{ 1 + 2·z' }→ if(s1, 1 + div(s', 1 + (1 + (z' - 2))), 0) :|: s1 >= 0, s1 <= 1, s' >= 0, s' <= 0, z' - 2 >= 0, z - 2 >= 0
div(z, z') -{ 1 + z' }→ if(s2, 1 + div(0, 1 + (1 + (z' - 2))), 0) :|: s2 >= 0, s2 <= 1, z' - 2 >= 0, z - 2 >= 0
div(z, z') -{ 3 }→ if(1, 1 + div(0, 1 + 0), 0) :|: z = 1 + 0, z' = 1 + 0
div(z, z') -{ 2 }→ if(1, 1 + div(0, 1 + 0), 0) :|: z - 1 >= 0, z' = 1 + 0
div(z, z') -{ 3 }→ if(0, 1 + div(0, 1 + (1 + (z' - 2))), 0) :|: z' - 2 >= 0, z = 1 + 0
div(z, z') -{ 2 }→ if(0, 1 + div(0, 1 + (1 + (z' - 2))), 0) :|: z' - 2 >= 0, z = 1 + 0
div(z, z') -{ 1 }→ 0 :|: z' - 1 >= 0, z = 0
div(z, z') -{ 0 }→ 0 :|: z >= 0, z' >= 0
geq(z, z') -{ 1 + z' }→ s'' :|: s'' >= 0, s'' <= 1, z' - 1 >= 0, z - 1 >= 0
geq(z, z') -{ 1 }→ 1 :|: z >= 0, z' = 0
geq(z, z') -{ 1 }→ 0 :|: z' - 1 >= 0, z = 0
if(z, z', z'') -{ 1 }→ z' :|: z'' >= 0, z = 1, z' >= 0
if(z, z', z'') -{ 1 }→ z'' :|: z'' >= 0, z' >= 0, z = 0
minus(z, z') -{ 1 + z' }→ s :|: s >= 0, s <= 0, z' - 1 >= 0, z - 1 >= 0
minus(z, z') -{ 1 }→ 0 :|: z' >= 0, z = 0
minus(z, z') -{ 0 }→ 0 :|: z >= 0, z' >= 0
minus: runtime: O(n1) [1 + z'], size: O(1) [0] if: runtime: O(1) [1], size: O(n1) [z' + z''] geq: runtime: O(n1) [1 + z'], size: O(1) [1] div: runtime: O(n1) [5 + 2·z'], size: O(1) [1] |